package com.lancoo.klgcourseware.entity;

import android.text.TextUtils;

import java.util.List;

/**
 * Created by pengmi on 2020/1/10 20:38
 * Description:
 */
public class ESPCardSource {

    private String KlgCode;
    private String KlgName;
    private String KlgTopic;
    private String UN_phonetic;
    private String UN_voice;
    private String US_phonetic;
    private String US_voice;
    private List<ChineseMeaning> MeaningList;
    private String EnglishMeaning;
    private String MeaningAnalysis;
    private String MeaningVoice;
    private String MeaningTime;
    private String MeaningSource;
    private String MeaningLink;
    private String PicturePath;

    public String getKlgCode() {
        return KlgCode;
    }

    public void setKlgCode(String klgCode) {
        KlgCode = klgCode;
    }

    public String getKlgName() {
        return KlgName;
    }

    public void setKlgName(String klgName) {
        KlgName = klgName;
    }

    public String getKlgTopic() {
        return KlgTopic;
    }

    public void setKlgTopic(String klgTopic) {
        KlgTopic = klgTopic;
    }

    public String getUN_phonetic() {
        return UN_phonetic;
    }

    public void setUN_phonetic(String UN_phonetic) {
        this.UN_phonetic = UN_phonetic;
    }

    public String getUN_voice() {
        if(!TextUtils.isEmpty(UN_voice)){
            UN_voice= UN_voice.replace("//////","/").replace("/////","/").replace("////","/").replace("///","/").replace("//","/");
            if(TextUtils.equals("/",UN_voice.substring(0,1))){
                UN_voice=UN_voice.substring(1);
            }
        }
        return UN_voice;
    }

    public void setUN_voice(String UN_voice) {
        this.UN_voice = UN_voice;
    }

    public String getUS_phonetic() {
        return US_phonetic;
    }

    public void setUS_phonetic(String US_phonetic) {
        this.US_phonetic = US_phonetic;
    }

    public String getUS_voice() {
        if(!TextUtils.isEmpty(US_voice)){
            US_voice= US_voice.replace("//////","/").replace("/////","/").replace("////","/").replace("///","/").replace("//","/");
            if(TextUtils.equals("/",US_voice.substring(0,1))){
                US_voice=US_voice.substring(1);
            }
        }
        return US_voice;
    }

    public void setUS_voice(String US_voice) {
        this.US_voice = US_voice;
    }

    public List<ChineseMeaning> getMeaningList() {
        return MeaningList;
    }

    public void setMeaningList(List<ChineseMeaning> meaningList) {
        MeaningList = meaningList;
    }

    public String getEnglishMeaning() {
        return EnglishMeaning;
    }

    public void setEnglishMeaning(String englishMeaning) {
        EnglishMeaning = englishMeaning;
    }

    public String getMeaningAnalysis() {
        return MeaningAnalysis;
    }

    public void setMeaningAnalysis(String meaningAnalysis) {
        MeaningAnalysis = meaningAnalysis;
    }

    public String getMeaningVoice() {
        return MeaningVoice;
    }

    public void setMeaningVoice(String meaningVoice) {
        MeaningVoice = meaningVoice;
    }

    public String getMeaningTime() {
        return MeaningTime;
    }

    public void setMeaningTime(String meaningTime) {
        MeaningTime = meaningTime;
    }

    public String getMeaningSource() {
        return MeaningSource;
    }

    public void setMeaningSource(String meaningSource) {
        MeaningSource = meaningSource;
    }

    public String getMeaningLink() {
        return MeaningLink;
    }

    public void setMeaningLink(String meaningLink) {
        MeaningLink = meaningLink;
    }

    public String getPicturePath() {
        if(!TextUtils.isEmpty(PicturePath)){
            PicturePath= PicturePath.replace("//////","/").replace("/////","/").replace("////","/").replace("///","/").replace("//","/");
            if(TextUtils.equals("/",PicturePath.substring(0,1))){
                PicturePath=PicturePath.substring(1);
            }
        }
        return PicturePath;
    }

    public void setPicturePath(String picturePath) {
        PicturePath = picturePath;
    }
}
